<?php
if (isset ( $_POST ['Venus'] )) {
	$msg = strval ( $_POST ['Venus'] );
	$url = "http://120.25.255.166/brobot_api";
	$post_data = array (
			"name_or_email" => "", // 填入用户账号
			"user_passwd" => "", // 填入用户密码
			"user_word" => $msg 
	);
	$ch = curl_init ();
	curl_setopt ( $ch, CURLOPT_URL, $url );
	curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
	curl_setopt ( $ch, CURLOPT_POST, 1 );
	curl_setopt ( $ch, CURLOPT_POSTFIELDS, $post_data );
	$output = curl_exec ( $ch );
	curl_close ( $ch );
	if (isset ( $output ) || $output == null) {
		/* echo strval(json_decode($output)); */
		// $output is a fucking data,shit!
		echo $output;
		/* var_dump($output); */
		/* echo "succeed"; */
	} else {
		$statu = array (
				"statu" => "error" 
		);
		echo json_encode ( $statu );
	}
} else {
	$statu = array (
			"statu" => "error" 
	);
	echo json_encode ( $statu );
	echo $s ['statu'];
	exit ();
}
?>
